package com.zx.server.api;

import com.zx.server.entity.ContactEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
public interface ContactServer {

    @RequestMapping("/addContact")
    public int addContact(@RequestBody ContactEntity contact);

    @RequestMapping("/getContactList")
    public List<ContactEntity> getContactList(@RequestParam(value = "ids",required=false) List<Integer> ids);
}
